/* 全局样式 - 深色科技风格 */
:root {
    --primary-bg: #0f172a; /* 深蓝黑背景 */
    --card-bg: rgba(30, 41, 59, 0.8); /* 半透明卡片背景 */
    --accent-color: #60a5fa; /* 科技蓝主色调 */
    --text-light: #e2e8f0; /* 浅色文字 */
    --text-muted: #94a3b8; /* 次要文字 */
    --success: #34d399; /* 成功提示色 */
    --error: #f87171; /* 错误提示色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    position: relative;
    overflow-x: hidden;
}

/* 左上角导航区 */
.top-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.nav-btn {
    background: rgba(30, 41, 59, 0.7);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
}

/* 主内容区 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px;
    min-height: 100vh;        /* 容器高度撑满视口 */
}

.form-container {
    display: flex;
    justify-content: center;  /* 水平居中 */
    align-items: center;      /* 垂直居中 */
    min-height: 100vh;        /* 容器高度撑满视口 */
}

form {
    width: 100%;              /* 表单宽度自适应 */
    max-width: 600px;         /* 最大宽度限制 */
    padding: 20px;            /* 内边距 */
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    padding: 40px 35px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    position: relative;
    overflow: hidden;
}

/* 装饰性科技元素 */
.auth-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    padding: 14px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 错误提示 */
.error-message {
    color: var(--error);
    font-size: 0.85rem;
    height: 20px;
    margin-top: 4px;
}

/* 底部版权 */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/*!* 页面加载动画 *!*/
/*.loader {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: var(--bg-primary);*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    z-index: 1000;*/
/*    animation: fadeOut 0.5s 1s forwards; !* 淡出效果[10](@ref) *!*/
/*}*/

/*.loader-circle {*/
/*    width: 80px;*/
/*    height: 80px;*/
/*    border: 5px solid rgba(30, 136, 229, 0.2);*/
/*    border-top: 5px solid var(--accent);*/
/*    border-radius: 50%;*/
/*    animation: rotate 1s linear infinite; !* 旋转加载[9](@ref) *!*/
/*}*/

/*@keyframes fadeOut {*/
/*    to { opacity: 0; visibility: hidden; }*/
/*}*/